feat(ui): show NetCopy version in topbar (local + peer)#70
Merged
Conversation
The /api/peer/info endpoint returns the running NetCopy version on each
side, but the UI never read or displayed it. Reported by VirusAlex —
"надо бы ещё в ui где-то отображать версию".
Two compact version chips in the topbar:
- Brand area, next to the hostname: local version (e.g. "v0.4.2"),
populated on a successful Connect.
- Peer section, next to the peer status pill: peer version on a
successful Connect peer.
Both are hidden until populated so first-load doesn't show "v?".
Hover-title carries the same value plus context for narrow viewports.
The peer status pill also gains a richer title that shows
"NetCopy v0.4.2 on hostname" once the connection succeeds — useful for
spotting "peer is running a different build than me" mismatches at a
glance during a release.
Pure client-side, no API changes (the version field has been on
/api/peer/info since v0.2.x).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/api/peer/infoalready returns the running NetCopy version on each side, but the UI never read or displayed it. Two compact version chips in the topbar:v0.4.2) — populated on a successful local Connect.Both hidden until populated so first-load doesn't show
v?. Hover-title carries the same value plus context for narrow viewports.The peer status pill also gains a richer title showing
NetCopy v0.4.2 on hostnameonce connected — useful for spotting "peer is running a different build than me" mismatches at a glance during a release.Why
Test plan
mvn compileclean; ArchUnit 8/8.🤖 Generated with Claude Code